package com.chutoutian.vo;

import lombok.Data;

@Data
public class ResponseMessage {

    private Integer code;
    private String message;
    private Object data;

    private ResponseMessage(Builder builder) {
        this.code = builder.code;
        this.message = builder.message;
        this.data = builder.data;
    }

    public static class Builder {
        private Integer code;
        private String message;
        private Object data;

        public Builder code(Integer code) {
            this.code = code;
            return this;
        }

        public Builder message(String message) {
            this.message = message;
            return this;
        }

        public Builder data(Object data) {
            this.data = data;
            return this;
        }

        public ResponseMessage bulid() {
            return new ResponseMessage(this);
        }

    }

}
